<?php

declare(strict_types=1);

namespace App\Marketing\Model;

use Hyperf\Database\Model\SoftDeletes;
use Mine\MineModel;

/**
 * @property int $id 主键
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 * @property string $deleted_at 删除时间
 * @property int $created_by 创建者
 * @property int $updated_by 更新者
 * @property string $code code
 * @property int $groups 号码组数
 * @property int $periods 期数
 * @property string $price 单注价格
 * @property string $pool 奖池
 * @property int $open_type 1分2时3天
 * @property int $open_time 周期时间
 * @property int $open_hour type为3填写小时
 * @property int $status 开启0否1是
 * @property int $people_num 满人开
 * @property int $open_at 开奖时间
 * @property array $name 
 * @property array $content 
 * @property array $config 
 */
class MarketingLotto extends MineModel
{
    use SoftDeletes;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'marketing_lotto';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'created_at', 'updated_at', 'deleted_at', 'created_by', 'updated_by', 'code', 'groups', 'periods', 'price', 'pool', 'open_type', 'open_time', 'open_hour', 'status', 'people_num', 'open_at', 'name', 'content', 'config'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'created_by' => 'integer', 'updated_by' => 'integer', 'groups' => 'integer', 'periods' => 'integer', 'price' => 'decimal:2', 'pool' => 'decimal:2', 'open_type' => 'integer', 'open_time' => 'integer', 'open_hour' => 'integer', 'status' => 'integer', 'people_num' => 'integer', 'open_at' => 'integer', 'name' => 'array', 'content' => 'array', 'config' => 'array'];
}
